﻿/***********************************************************************
 * <copyright file="IFixedAssetVoucher.cs" company="BUCA JSC">
 * -->    Copyright (C) statement. All right reserved
 * </copyright>
 * 
 * Created:   LinhMC
 * Email:    linhmc@buca.vn
 * Website:
 * Create Date: Tuesday, October 22, 2013
 * Usage: 
 * 
 * RevisionHistory: 
 * Date         Author               Description 
 * 
 * ************************************************************************/

using System.Collections.Generic;
using BusinessObjects.BussinessVoucher;

namespace DataObjects.StandartInterfaces.Voucher
{
    /// <summary>
    /// Defines methods to access FixedAssetVoucher
    /// </summary>
    /// <remarks>
    /// This is a database-independent interface. Implementations are database specific
    /// </remarks>
    public interface IFixedAssetVoucherDao
    {


        /// <summary>
        /// Gets the paged.
        /// </summary>
        /// <param name="unitId">The unit identifier.</param>
        /// <param name="refTypeId">The reference type identifier.</param>
        /// <param name="currentPage">The current page.</param>
        /// <returns></returns>
        List<FixedAssetVoucher> GetPaged(long unitId, long refTypeId, int currentPage);

        /// <summary>
        /// Gets the size of the page.
        /// </summary>
        /// <param name="unitId">The unit identifier.</param>
        /// <param name="refTypeId">The reference type identifier.</param>
        /// <returns></returns>
        int GetPageSize(long unitId, long refTypeId);



        /// <summary>
        /// Gets the item transaction.
        /// </summary>
        /// <param name="refId">The reference identifier.</param>
        /// <returns></returns>
        FixedAssetVoucher GetFixedAssetVoucher(long refId);


        /// <summary>
        /// Inserts the item transaction.
        /// </summary>
        /// <param name="fixedAssetVoucher">The item transaction.</param>
        /// <returns></returns>
        string InsertFixedAssetVoucher(FixedAssetVoucher fixedAssetVoucher);


        /// <summary>
        /// Updates the item transaction.
        /// </summary>
        /// <param name="fixedAssetVoucher">The item transaction.</param>
        /// <returns></returns>
        string UpdateFixedAssetVoucher(FixedAssetVoucher fixedAssetVoucher);


        /// <summary>
        /// Deletes the item transaction.
        /// </summary>
        /// <param name="fixedAssetVoucher">The item transaction.</param>
        /// <returns></returns>
        string DeleteFixedAssetVoucher(FixedAssetVoucher fixedAssetVoucher);

        /// <summary>
        /// Gets the sequence.
        /// </summary>
        /// <returns></returns>
        long GetSequence();
    }
}
